import {createAsyncThunk} from "@reduxjs/toolkit";
import {PagingData, PagingResult} from "type/Page";
import {Reimburse} from "type/entity/Reimburse";
import RequestHandler from "http/RequestHandler";
/**
 * 获取报销单分页数据
 * */
export const fetchReimbursePageData = createAsyncThunk(
    'reimburse/fetchReimbursePageData',
    async (paging: PagingData) => await RequestHandler.get<PagingResult<Reimburse>>("/record/reimburse/page/" + paging.page + "/" + paging.pageSize)
);
